package com.squapsource.project_euler.utils;

import java.math.BigInteger;

public class Factorial {
	
	public static BigInteger factorial(long num)
	{
		BigInteger fact = BigInteger.valueOf(1);
		for(long i=num; i>0; i--)
			fact = fact.multiply(BigInteger.valueOf(i));
		return fact;
	}

}
